[index]
Width Property
Syntax
For all objects:
set the width of <object | {card | cd} window>
to <number>
For dataSheets and pickLists and dataSheets: set the width of <col[umn] <number1>
[to <number2>]> of <dataSheet |
pickList| dataSheet> to <number>
Applies to all objects, backgrounds, cards, card windows, message box, toolbar
Description
The width property determines the width in pixels of an object or window. When the width of an object is changed, its center point remains in the same position.
For dataSheets and pickLists and dataSheets, the width property additionally defines the width of one or more columns of the object. The default width for columns is 50 for pickLists; 100 for dataSheets. Setting the colWidth property also sets the column width property for all columns of the object.
Notes
The width property can also be changed by manually dragging an object's corner.
If the width of a button or field is changed to a value of less than 1, then the object is hidden, but the visible property is not affected.
A dataSheet or pickList or dataSheet column with a width of 0 is invisible. A dataSheet column with a width of 0 cannot be edited in Browse mode.
Examples
on mouseUp
repeat with i = 1 to 200
set the width of shp "test" to i end repeat
end mouseUp
This text has been mechanically extracted from the Oracle Media Objects 1.0.4.9 MediaTalk Reference, © 1995 Oracle Corporation, and is provided here solely for educational/historical purposes.